package com.htd.htdapmapi.alarm.dto;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.Data;

@Data
public class PrometheusDto implements Serializable {

	private static final long serialVersionUID = 235825734241703299L;

	private String receiver;

	private String status;

	private List<AlertsDto> alerts;

	private GroupLabelsDto groupLabels;

	private CommonLabelsDto commonLabels;

	private CommonAnnotationsDto commonAnnotations;

	private String externalURL;

	private String version;

	private String groupKey;
	
	/**
	 * 告警状态
	 */
	private String alarmStatus;

	/**
	 * 告警时间ID，用做ES的ID 方便后面更新ES
	 */
	private String alarmsId;
	
	/**
	 * 数据来源
	 */
	private String sourceFrom;
	
	/**
	 * 告警事件类型
	 */
	private String eventType;
	
	private String alarmInfo; //CommonLabelsDto里面的alertname + instance 拼接而成
	
	private String alarmTime;
	
    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
